{% extends "Themes/Itdashu/templates/page.twig" %}
{% block body %}
    <div class="col-lg-9 col-md-9 left-box">
        {{ content() }}
        <ul class="tab-nav">
            <li><h1>{{ data.name }}的主页</h1></li>
            <li class="active">文章</li>
            <li class="">评论</li>
        </ul>
        <div class="tab-navcontent">
            <div class="item item-01 active clearfix">
                {% for item in entityList('node',['conditions':['uid':id],'limit':20,'skip':0]) %}
                    {{ view.r(nodeRender(item)) }}
                {% endfor %}
            </div>
            <div class="item item-02 clearfix">
                {% for item in entityList('comment',['conditions':['uid':id],'limit':20,'skip':0]) %}
                    <div class="comment-list-item clearfix">
                        <div class="date">
                            <span>{{ date('Y',item.changed) }}</span>
                            <span>{{ date('m-d',item.changed) }}</span>
                        </div>
                        <div class="comment-list-body">
                            <p class="comment-node">评论：<a href="{{ url(['for':'node','id':item.nid,'contentModel':item.nodeContentModel]) }}"
                                                          title="{{ item.node.title }}">{{ item.node.title }}</a></p>
                            <div class="comment-body">{{ item.body }}</div>
                        </div>
                    </div>
                    <div class="clear"></div>
                {% endfor %}
            </div>
            <div class="clear"></div>
        </div>
    </div>
{% endblock %}
{% block right_box %}
    <aside class="region col-lg-3 col-md-3 right-box hidden-xs hidden-sm">
        <div id="user-center-box" class="">
            <!-- table of contents -->
            <div class="box">
                <div class="user-info-face clearfix">
                    <img src="{% if data.face %}{{ data.face }}{% else %}/images/face/avatar.png{% endif %}"/>
                    <a href="#" title="发消息" class="btn btn-info pull-right">发消息</a>
                    <div class="user-meta clearfix">
                        <p class="user-name">{{ data.name }}<b>LV 8</b></p>
                        <p class="score"><span href="javascript:;"><i aria-hidden="true"
                                                                      class="fa fa-ils"></i>{% if data.score %}{{ data.score }}{% else %}0{% endif %}</span><span><i
                                        aria-hidden="true"
                                        class="fa fa-btc"></i>{% if data.gold %}{{ data.gold }}{% else %}0{% endif %}</span>
                        </p>
                    </div>
                </div>
                <p class="description">{% if data.description %}{{ data.description }}{% else %}这个人很懒，什么都没有留下{% endif %}</p>
            </div>
            <h3>基本资料</h3>
            <ul id="user-action-list" class="box">
                <li><a href="#"><i aria-hidden="true" class="fa fa-lock"></i>性别：不能鉴定</a></li>
                <li><a href="#"><i aria-hidden="true" class="fa fa-phone"></i>手机: 公开<span
                                class="btn-small btn-error">未认证</span></a></li>
                <li><a href="#"><i aria-hidden="true" class="fa fa-envelope-square"></i>邮箱: 不公开<span
                                class="btn-small btn-success">未认证</span></a></li>
                <li><a href="#"><i aria-hidden="true" class="fa fa-question-circle-o"></i>QQ：保密</a></li>
                <li><a href="#"><i aria-hidden="true" class="fa fa-wpforms"></i>给他留言</a></li>
            </ul>
        </div>
    </aside>
{% endblock %}
{% block bottom %}
    <script src="/themes/tolowan/js/js.js"></script>
{% endblock %}
